#pragma once
#include <DirectXCollision.h>
#include <GGenericInfra/GMath.h>


class GRiBounds3Box
{
public:
	void InitFromPoints(const GMath::Vector3& vi, const GMath::Vector3& vx);

	GRiBounds3Box Transform(const GMath::Matrix& world)const;

	GMath::Vector3 Center()const;
	GMath::Vector3 Extents()const;

	GRiBounds3Box Union(const GRiBounds3Box& box);
	GRiBounds3Box Union(const GMath::Vector3& v);

	int MaxExtent()const;

	bool Intersect(const GMath::Vector3& orgin,const GMath::Vector3& dir)const;
public:
	DirectX::BoundingBox mBox;
};

